package com.ruoyi.leaveMessage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 留言管理对象 sh_leave_message
 * 
 * @author GGB
 * @date 2021-09-23
 */
public class ShLeaveMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String lname;

    /** 留言内容 */
    @Excel(name = "留言内容")
    private String content;

    /** 用户电话 */
    @Excel(name = "用户电话")
    private String phone;

    /** 留言时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "留言时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ltime;

    /** 回复 */
    @Excel(name = "回复")
    private String answere;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLname(String lname) 
    {
        this.lname = lname;
    }

    public String getLname() 
    {
        return lname;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setLtime(Date ltime) 
    {
        this.ltime = ltime;
    }

    public Date getLtime() 
    {
        return ltime;
    }
    public void setAnswere(String answere) 
    {
        this.answere = answere;
    }

    public String getAnswere() 
    {
        return answere;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("lname", getLname())
            .append("content", getContent())
            .append("phone", getPhone())
            .append("ltime", getLtime())
            .append("answere", getAnswere())
            .toString();
    }
}
